package com.bwie.controller;

import com.bwie.common.domain.Gift;
import com.bwie.common.result.Result;
import com.bwie.service.GiftService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/gift")
@CrossOrigin
public class GiftController {

    @Autowired
    private GiftService giftService;


    @PostMapping("/upd")
    public Result<Gift> add(@RequestBody Gift gift){
        giftService.add(gift);
        return Result.success();
    }

}
